package com.globalLogic.gps.view;

import com.globalLogic.gps.graph.INode;

public class NodeView  {

	private INode node;
	private int x;
	private int y;
	public INode getNode() {
		return node;
	}
	public void setNode(INode node) {
		this.node = node;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public NodeView(INode node, int x, int y) {
		super();
		this.node = node;
		
		this.x = node.getXDisplay()==0?x:node.getXDisplay();
		this.y = node.getYDisplay()==0?y:node.getYDisplay();
	}
	
}
